package superMarket;

public class ProductItem {
	
	Product product;
	
	private int productNums;

	public ProductItem(Product product, int productNums) {
		
		this.product = product;
		this.productNums = productNums;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public int getProductNums() {
		return productNums;
	}

	public void setProductNums(int productNums) {
		this.productNums = productNums;
	}
	
	public double sumPrice()
	{
		return this.getProduct().getPrice()*this.getProductNums();
	}
	

}
